package com.lxb.eduservice.service;

import com.lxb.eduservice.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lxb.eduservice.vo.chapter.ChapterVo;

import java.util.List;

/**
 * 课程章节
 *
 * @author lixuebin
 * @since 2022-11-06
 */
public interface EduChapterService extends IService<EduChapter> {

    /**
     * 根据课程id，获取课程章节信息
     *
     * @param id
     * @return
     */
    List<ChapterVo> getChapterVideoByCourseId(String id);

    /**
     * 删除章节方法
     *
     * @param chapterId
     * @return
     */
    boolean deleteChapter(String chapterId);

    /**
     * 根据课程id删除章节
     * @param courseId
     */
    void removeChapterByCourseId(String courseId);
}
